﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using GS.DataConnection;

namespace GS.CMS.Entities
{
    public class News
    {
        public DataSet GetListNews(int pgNum)
        {
            System.Collections.Hashtable ht = new System.Collections.Hashtable();
            ht.Add("@pgNum", pgNum);
            return SqlProvider.GetDataSet("pro_news_list", "dsNews", ht);
        }
        public DataTable GetNewsByID(int NewsID)
        {
            System.Collections.Hashtable ht = new System.Collections.Hashtable();
            ht.Add("@NewsID", NewsID);
            return SqlProvider.GetTable("pro_news_get_by_id", "dtNews", ht);
        }
    }
}
